import { _decorator, Component, Node } from 'cc';
import { LocalConfig } from './base/conf/LocalConfig';
const { ccclass, property } = _decorator;

/**
 * 入口类
 */
@ccclass('main')
export class main extends Component {

    start() {
        //加载配置文件
        LocalConfig.instance.loadConfig(()=>{
            console.log("loadConfig finish");
        });
    }

    update(deltaTime: number) {
        // let data = LocalConfig.instance.getTableArr("base");
        // console.log(data);

        //测试 获取根据id获取表的一行内容
        // let data2 = LocalConfig.instance.queryByID("base",'1001');
        // console.log(data2);
    }
}


